package com.insight.spring.sub;

import com.insight.spring.Autowired;
import com.insight.spring.Component;
import com.insight.spring.PostConstruct;

@Component
public class Cat {

    @Autowired
    private Dog dog;

    @PostConstruct
    public void  init(){
        System.out.println("cat 创建了，cat 里有一个属性"+dog) ;
    }
}
